Mini youtube/full url for member profile in right side block v2.6

Demo: http://www.thefulcrumpoint.org/member.php?u=31

First create 3 profile fields.
One for YouTube URL,
one for YouTube title and
one for auto-play..

=============================================================
admin >> User Profile Fields >> Add New User Profile Field

1:
Single-Line Text Box
Title:		 YouTube URL	 
Description:     Put your YouTube URL here.

Field Length:  50
Private Field:   Yes
Field Searchable on Members List:   NO
Show on Members List:   NO

Then Save..

Remember the Field number..
Say the field number is 9,,you will need to change the
i in $useinfo[fieldi] to 9 like this,, $useinfo[field9]
=============================================================
Add anther Profile Field,,

2:
Single-Line Text Box
Title:		 YouTube Title	 
Description:     Put your YouTube Title here.

Private Field:   Yes
Field Searchable on Members List:   NO
Show on Members List:   NO

Then Save..

Remember the Field number..
Say the field number is 10,,you will need to change the
t in $useinfo[fieldt] to 10 like this,, $useinfo[field10]
=============================================================
Add anther Profile Field,,

3:
Single-Line Text Box
Title:		 YouTube Auto-play	 
Description:     Put &autoplay=1 in the input box below,to have it auto-play..

Private Field:   Yes
Field Searchable on Members List:   NO
Show on Members List:   NO

Then Save..

Remember the Field number..
Say the field number is 11,,you will need to change the
a in $useinfo[fielda] to 11 like this,, $useinfo[field11]
=============================================================

Import the plugin..

admin >> Plugins & Products >> [Add/Import Product] and import
youtube_member_profile_url.xml file..

============================================================

Edit two templates.

1:
admincp >> Styles & Templates >> Member Info Templates >> 
memberinfo_block_youtube

Find three $useinfo[fieldi] and change the i to the YouTube ID field number..

Find two $useinfo[fieldt] and change the t to the YouTube title field number..

Find one $useinfo[fielda] and change the a to the YouTube auto-play field number..


2:
Edit: Styles & Templates >> Member Info Templates >> MEMBERINFO

Look for,,

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

Put $blocks[youtube] anywhere in there..
I have mine arter $blocks[friends_mini]..
Like this,,

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[youtube]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

========================================================================

Go to youtube dot com,,find the video you want..

You need to use the link from the Embed code..
URL = http://www.youtube.com/watch?v=HhuVgywiO3w

Put http://www.youtube.com/watch?v=HhuVgywiO3w in your YouTube URL field..

Then put,,Welcome Home Roscoe Jenkins,,in your YouTube title field..

To edit your YouTube fields..
USERCP >> Edit Your Details >> Additional Information

========================================================================

To edit usergroups,,
admincp >> Plugins & Products >> Plugin Manager:
Mini right side YouTube for Member Profile

Add the usergroup ID,,that you want to be able to use the YouTube vidoes..

Code:
if (is_member_of($vbulletin->userinfo,1 ,2 , 5, 6, 7))

Like this: ,1 ,2 , 3, 4, 5, 6, 7 ,8 ,9

================================================================


Enjoy !!
stangger5








